package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 审批流程定义表
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class BdpWfFlow extends Model<BdpWfFlow> {

    private static final long serialVersionUID=1L;

    /**
     * 审批流标识
     */
    @TableId("FLOW_ID")
    private String flowId;

    /**
     * 流程名称
     */
    @TableField("FLOW_NAME")
    private String flowName;

    /**
     * 流程分类
     */
    @TableField("CATEGORY_ID")
    private String categoryId;

    /**
     * 是否逐级拒绝
     */
    @TableField("BACK_TO_PREVENIENT")
    private Integer backToPrevenient;

    /**
     * 审批人在审批时是否允许修改单据
     */
    @TableField("ALLOW_EDIT")
    private Integer allowEdit;

    /**
     * 是否允许选择节点
     */
    @TableField("ALLOW_SELECT_NODE")
    private Integer allowSelectNode;

    /**
     * 弃核后是否保存痕迹
     */
    @TableField("PRESERVE_TRACES")
    private Integer preserveTraces;

    /**
     * 启用标识
     */
    @TableField("ENABLE_FLAG")
    private Integer enableFlag;

    /**
     * 流程说明
     */
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 公司
     */
    @TableField("INNER_COMPANY_ID")
    private String innerCompanyId;

    /**
     * 创建人
     */
    @TableField("INNER_CREATOR_ID")
    private String innerCreatorId;

    /**
     * 创建时间
     */
    @TableField("INNER_CREATE_TIME")
    private LocalDateTime innerCreateTime;

    /**
     * 删除标志
     */
    @TableField("INNER_DELETE_FLAG")
    private Integer innerDeleteFlag;


    public String getFlowId() {
        return flowId;
    }

    public BdpWfFlow setFlowId(String flowId) {
        this.flowId = flowId;
        return this;
    }

    public String getFlowName() {
        return flowName;
    }

    public BdpWfFlow setFlowName(String flowName) {
        this.flowName = flowName;
        return this;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public BdpWfFlow setCategoryId(String categoryId) {
        this.categoryId = categoryId;
        return this;
    }

    public Integer getBackToPrevenient() {
        return backToPrevenient;
    }

    public BdpWfFlow setBackToPrevenient(Integer backToPrevenient) {
        this.backToPrevenient = backToPrevenient;
        return this;
    }

    public Integer getAllowEdit() {
        return allowEdit;
    }

    public BdpWfFlow setAllowEdit(Integer allowEdit) {
        this.allowEdit = allowEdit;
        return this;
    }

    public Integer getAllowSelectNode() {
        return allowSelectNode;
    }

    public BdpWfFlow setAllowSelectNode(Integer allowSelectNode) {
        this.allowSelectNode = allowSelectNode;
        return this;
    }

    public Integer getPreserveTraces() {
        return preserveTraces;
    }

    public BdpWfFlow setPreserveTraces(Integer preserveTraces) {
        this.preserveTraces = preserveTraces;
        return this;
    }

    public Integer getEnableFlag() {
        return enableFlag;
    }

    public BdpWfFlow setEnableFlag(Integer enableFlag) {
        this.enableFlag = enableFlag;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public BdpWfFlow setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getInnerCompanyId() {
        return innerCompanyId;
    }

    public BdpWfFlow setInnerCompanyId(String innerCompanyId) {
        this.innerCompanyId = innerCompanyId;
        return this;
    }

    public String getInnerCreatorId() {
        return innerCreatorId;
    }

    public BdpWfFlow setInnerCreatorId(String innerCreatorId) {
        this.innerCreatorId = innerCreatorId;
        return this;
    }

    public LocalDateTime getInnerCreateTime() {
        return innerCreateTime;
    }

    public BdpWfFlow setInnerCreateTime(LocalDateTime innerCreateTime) {
        this.innerCreateTime = innerCreateTime;
        return this;
    }

    public Integer getInnerDeleteFlag() {
        return innerDeleteFlag;
    }

    public BdpWfFlow setInnerDeleteFlag(Integer innerDeleteFlag) {
        this.innerDeleteFlag = innerDeleteFlag;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.flowId;
    }

    @Override
    public String toString() {
        return "BdpWfFlow{" +
        "flowId=" + flowId +
        ", flowName=" + flowName +
        ", categoryId=" + categoryId +
        ", backToPrevenient=" + backToPrevenient +
        ", allowEdit=" + allowEdit +
        ", allowSelectNode=" + allowSelectNode +
        ", preserveTraces=" + preserveTraces +
        ", enableFlag=" + enableFlag +
        ", description=" + description +
        ", innerCompanyId=" + innerCompanyId +
        ", innerCreatorId=" + innerCreatorId +
        ", innerCreateTime=" + innerCreateTime +
        ", innerDeleteFlag=" + innerDeleteFlag +
        "}";
    }
}
